# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtkcommon-git
pkgver=5.5.17.r8.gfe3dd87
pkgrel=1
pkgdesc='DTK common modules'
arch=('any')
url="https://github.com/linuxdeepin/dtkcommon"
license=('LGPL3')
depends=('dconf')
makedepends=('cmake' 'ninja')
provides=('dtkcommon')
groups=('deepin-git')
source=('source.tar.gz')
sha512sums=('SKIP')

build() {
  cd $deepin_source_name
  cmake . -GNinja \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DMKSPECS_INSTALL_DIR=/usr/lib/qt/mkspecs/ \
    -DCMAKE_INSTALL_PREFIX=/usr 
  ninja
}

package() {
  cd $deepin_source_name
  DESTDIR="$pkgdir" ninja install
}
